home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / share / src / OpenGL / teach / isfast / demo.c.z / demo.c
Encoding:
C/C++ Source or Header  |  1996-12-06  |  654 b   |  27 lines

  1. /* isfast demo - X11 version */
  2.  
  3.  
  4. #include <stdio.h>
  5. #include "isfast.h"
  6.  
  7.  
  8. static const char* cFast = "fast";
  9. static const char* cSlow = "slow";
  10.  
  11.  
  12. void
  13. main(int argc, char** argv) {
  14.     if (!IsFastXOpenDisplay(NULL)) {
  15.         fprintf(stderr, "can't open display\n");
  16.         exit(1);
  17.         }
  18.  
  19.     printf("Immediate mode is %s\n", ImmediateModeIsFast()? cFast: cSlow);
  20.     printf("Depth-buffering is %s\n", DepthBufferingIsFast()?cFast:cSlow);
  21.     printf("Stencilling is %s\n", StencillingIsFast()? cFast: cSlow);
  22.     printf("Texture mapping is %s\n", TextureMappingIsFast()?cFast:cSlow);
  23.     printf("Line antialiasing is %s\n", LineAAIsFast()? cFast: cSlow);
  24.  
  25.     IsFastXCloseDisplay();
  26.     }
  27.